3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to manage orientation styles.
You can use the Q3OrientationStyle_New function to create a new orientation style object.
TQ3StyleObject Q3OrientationStyle_New (
TQ3OrientationStyle frontFacingDirection);
The Q3OrientationStyle_New function returns, as its function result, a new style object having the orientation style specified by the frontFacingDirection parameter. The frontFacingDirection parameter should be one of these values:
kQ3OrientationStyleCounterClockwise
kQ3OrientationStyleClockwise
If a new style object could not be created, Q3OrientationStyle_New returns the value NULL .
To change the current orientation style, you must actually draw the style object. You can call Q3Style_Submit to draw the style in retained mode or Q3OrientationStyle_Submit (described next) to draw the style in immediate mode.
See "Orientation Styles" for a description of orientation styles.
You can use the Q3OrientationStyle_Submit function to submit a orientation style in immediate mode.
TQ3Status Q3OrientationStyle_Submit (
TQ3OrientationStyle frontFacingDirection,
TQ3ViewObject view);
You can use the Q3OrientationStyle_Get function to get the orientation style value of an orientation style.
TQ3Status Q3OrientationStyle_Get (
TQ3StyleObject frontFacingDirectionObject,
TQ3OrientationStyle *frontFacingDirection);
You can use the Q3OrientationStyle_Set function to set the orientation style value of a orientation style.
TQ3Status Q3OrientationStyle_Set (
TQ3StyleObject frontFacingDirectionObject,
TQ3OrientationStyle frontFacingDirection);
Previous | QD3D Book | Overview | Chapter Contents | Next |